package feishu

import (
	lark "github.com/larksuite/oapi-sdk-go/v3"
	"sync"
)

var (
	// 单例客户端实例
	clientInstance *lark.Client
	// 确保只初始化一次
	once sync.Once
)

const (
	APP_ID     = "cli_a6ae3dd66024100e"
	APP_SECRET = "xK7rd9lt0Wvc8iKwHyzSlevY7bWUvGBM"
)

func GetFSClient() *lark.Client {
	once.Do(func() {
		clientInstance = lark.NewClient(APP_ID, APP_SECRET)
	})
	return clientInstance
}
